package com.kernel.fileDemo;

import java.io.File;

/****************************************
 * @name FileDemo02
 * @description 删除文件
 * @author 黄彬恒
 * @since 2018/7/31
 ***************************************/
public class FileDemo02 {
    public static void main(String[] args) {
        File file = new File("D:" + File.separator + "ideaProgram" + File.separator + "IOLearning" + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "testDir" + File.separator + "2.txt");
        if (file.exists()) {
            //noinspection ResultOfMethodCallIgnored
            file.delete();
        }
    }
}
